import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
    {
        path: '/login',
        component: ()=> import('../components/login.vue')
    },
    {
        path: '/search',
        component: ()=> import('../components/search.vue')
    },
    {
        path: '/',
        redirect: '/login'
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router